@import "../../../../assets/css/labb-lib";

.labb-team-members {
  .labb-team-member {
    .labb-social-list {
      margin-top: 20px;
      .labb-social-list-item {
        display: inline;
        margin: 0 15px 0 0;
        }
      }
    .labb-team-member-details {
      @include labb-body-font();
      }
    .labb-team-member-text {
      .labb-title {
        @include labb-heading-style();
        }
      .labb-team-member-position {
        font-size: 15px;
        line-height: 24px;
        font-style: italic;
        color: #888;
        margin-bottom: 10px;
        }
      }
    }

  }
/*-------- Style 1 ----------------*/

.labb-team-members.labb-style1 {
  .labb-team-member-wrapper {
    float: left;
    padding: 10px;
    }
  .labb-team-member {
    max-width: 320px;
    margin: 0 auto 40px;
    .labb-image-wrapper {
      text-align: center;
      position: relative;
      img {
        max-width: 100%;
        margin: 0 auto 30px;
        transition: all .3s ease-in-out 0s;
        }
      .labb-social-list {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 40%;
        z-index: 2;
        @include respond-to-max(767) {
          position: relative;
          top: 0;
          }
        i {
          font-size: 26px;
          color: #fff;
          opacity: 0;
          transition: all .3s ease-in-out 0s;
          &:hover {
            color: #ccc;
            }
          @include respond-to-max(767) {
            color: inherit;
            opacity: 1;
            &:hover {
              color: inherit;
              }
            }
          }
        }
      }
    &:hover {
      .labb-image-wrapper {
        img {
          filter: brightness(50%);
          @include respond-to-max(767) {
            filter: brightness(80%);
            }
          }
        .labb-social-list i {
          opacity: 1;
          }
        }
      }
    .labb-team-member-text {
      text-align: center;
      max-width: 650px;
      .labb-title {
        margin-bottom: 10px;
        }
      }
    .labb-social-list {
      margin: 10px auto;
      }
    }
  }

/*-------- Style 2 ----------------*/

.labb-team-members.labb-style2 {
  position: relative;
  max-width: 960px;
  .labb-team-member-wrapper {
    clear: both;
    margin-top: 100px;
    &:first-child {
      margin-top: 0;
      }
    /* Make that flip-flop possible */
    .labb-image-wrapper {
      float: left;
      position: relative;
      img {
        max-width: 320px;
        transition: all .3s ease-in-out 0s;
        }
      }
    .labb-team-member-text {
      margin: 10px 0 0;
      vertical-align: middle;
      padding-top: 20px;
      .labb-title {
        margin-bottom: 5px;
        }
      .labb-team-member-details {
        margin: 10px 0 10px;
        }
      .labb-social-list {
        i {
          font-size: 24px;
          }
        }
      }
    &:hover {
      .labb-image-wrapper img {
        filter: brightness(80%);
        }
      }
    }
  .labb-team-member-wrapper:nth-child(odd) {
    .labb-image-wrapper {
      margin-right: 50px;
      }
    }
  .labb-team-member-wrapper:nth-child(even) {
    .labb-image-wrapper {
      float: right;
      margin-left: 50px;
      }
    .labb-team-member-text {
      .labb-title, .labb-team-member-position, .labb-team-member-details, .labb-social-list {
        text-align: right;
        }
      }
    }
  }

@include respond-to-max(767) {
  .labb-team-members.labb-style2 {
    .labb-team-member-wrapper {
      margin-top: 75px;
      }
    .labb-team-member {
      .labb-image-wrapper, .labb-team-member-text {
        width: 100%;
        float: none;
        }
      .labb-image-wrapper {
        text-align: center;
        img {
          margin: 0 auto 20px;
          }
        }
      .labb-team-member-text {
        max-width: 400px;
        margin: 0 auto;
        padding-top: 0;
        .labb-title, .labb-team-member-position, .labb-team-member-details, .labb-social-list {
          text-align: center !important;
          }
        }
      }
    }
  }

.labb-dark-bg .labb-team-members {
  .labb-team-member {
    .labb-team-member-details {
      color: #909090;
      }
    .labb-team-member-text {
      .labb-title {
        color: #e5e5e5;
        }
      .labb-team-member-position {
        color: #505050;
        }
      }
    }

  }